package com.leyou.item.pojo;

import java.util.ArrayList;
import java.util.List;

public class SpuBo extends Spu{
    private String cname; // 商品分裂名称
    private String bname; // 商品分类
    SpuDetail spuDetail;// 商品详情
    List<Sku> skus;// sku列表

    public SpuDetail getSpuDetail() {
        return spuDetail;
    }

    public void setSpuDetail(SpuDetail spuDetail) {
        this.spuDetail = spuDetail;
    }

    public List<Sku> getSkus() {
        if (skus == null) {
            return new ArrayList<>();
        }
        return skus;
    }

    public void setSkus(List<Sku> skus) {
        this.skus = skus;
    }

    public String getCname() {
        return cname == null ? "" : cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getBname() {
        return bname == null ? "" : bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }
}
